import request from '@/utils/aliyunRequest';

const patientApi = {};

patientApi.page = (params) => {
	return request({
		url: '/aliyun-api/patient/page',
		method: 'get',
		params: params,
	})
}
patientApi.add = (params) => {
	return request({
		url: '/aliyun-api/patient',
		method: 'post',
		data: params,
	})
}
patientApi.update = (params) => {
	return request({
		url: '/aliyun-api/patient',
		method: 'put',
		data: params,
	})
}
patientApi.get = (id) => {
	return request({
		url: '/aliyun-api/patient/' + id,
		method: 'get',
	})
}
patientApi.delete = (id) => {
	return request({
		url: '/aliyun-api/patient/' + id,
		method: 'delete',
	})
}


export default patientApi